<template>
    <el-dialog
        title="编辑"
        v-model="dialogVisible"
        width="50%">
        <el-row>
            <el-col :span="12">
                <div class="grid-content bg-purple">
                    <td>*设备厂商：</td>
                    <td><el-input
                        placeholder="请输入内容"
                        value="aaaa"
                        v-model="equipSupplier"
                        :disabled="true">
                    </el-input></td>
                </div>
            </el-col>
            <el-col :span="12">
                <div class="grid-content bg-purple-light">
                    <td>*设备型号：</td>
                    <td><el-input
                        placeholder="请输入内容"
                        v-model="equipType"
                        :disabled="true">
                    </el-input></td>
                </div>
            </el-col>
        </el-row>

        <el-row>
            <el-col :span="12">
                <div class="grid-content bg-purple">
                    <td>*理论产能：</td>
                    <td><el-input
                        placeholder="请输入内容"
                        v-model="capacity">
                    </el-input></td>
                </div>
            </el-col>
            <el-col :span="12">
                <div class="grid-content bg-purple-light">
                    <td>*加工配置：</td>
                    <td><el-select v-model="machiningCongfig" slot="prepend" placeholder="请选择">
                        <el-option label="剪切" value="1"></el-option>
                        <el-option label="锯切" value="2"></el-option>
                        <el-option label="套丝" value="3"></el-option>
                        <el-option label="弯曲" value="4"></el-option>
                    </el-select></td>
                </div>
            </el-col>
        </el-row>

        
        <el-row>
            <el-col :span="24"><div class="grid-content bg-purple-dark">
                <td>备注：</td>
                <td><el-input
                    type="textarea"
                    :rows="2"
                    placeholder="请输入内容"
                    v-model="textarea"
                ></el-input></td></div>
            </el-col>
        </el-row>
        
        <br>
        <br>
        <span slot="footer" class="dialog-footer">
            <el-button @click="dialogVisible = false">取 消</el-button>
            <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
        </span>
        <!-- <EchartsMap></EchartsMap> -->
     </el-dialog>
</template>
<script>
export default {
    data() {
      return {
            dialogVisible: false,
            equipSupplier:"",
            equipCode:"",
            capacity:"",
            machiningCongfig:"",
            textarea:"",
      };
    },
    components: {
        // EchartsMap,
    },
    methods: {
        edit(row){
            console.log(row)
            this.dialogVisible = true;
            this.equipSupplier = row.equipSupplier
            this.equipCode = row.equipCode
            this.capacity= row.capacity
            this.machiningCongfig = row.machiningCongfig
        },
    }
};
</script>